import request from './request'
// 新增开关网关
export const switchGatewayAdd = (addSwitchGateway) => {
  return request({
    url: '/switchGateway/add',
    method: 'post',
    data: addSwitchGateway,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 开关网关列表
export const switchGatewayList = (param) => {
  return request({
    url: '/switchGateway/list',
    method: 'get',
    param,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 开关网关详情
export const switchGatewayDetail = (gatewayId) => {
  return request({
    url: '/switchGateway/detail',
    method: 'get',
    param: {
      gatewayId
    },
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 所有开关网关
export const switchGatewayAllList = () => {
  return request({
    url: '/switchGateway/allList',
    method: 'get',
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}
